CREATE TABLE [dbo].[TDFLUJ_PROY_SEMA]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[NU_ANIO] [dbo].[TD_IN_004_ANOS] NOT NULL,
[NU_SECU] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TDFLUJ_PR__NU_SE__6DB73E6A] DEFAULT ((0)),
[CO_ARUB] [dbo].[TD_VC_003] NOT NULL,
[CO_RUBR] [dbo].[TD_VC_003] NOT NULL,
[CO_CLSU] [dbo].[TD_VC_003] NOT NULL,
[CO_MONE] [dbo].[TD_VC_003] NOT NULL,
[FA_TIPO_CAMB] [dbo].[TD_NU_015_006] NOT NULL,
[IM_SALD_INIC] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_SA__6EAB62A3] DEFAULT ((0)),
[IM_CALC_SE01] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__6F9F86DC] DEFAULT ((0)),
[IM_CALC_SE02] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7093AB15] DEFAULT ((0)),
[IM_CALC_SE03] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7187CF4E] DEFAULT ((0)),
[IM_CALC_SE04] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__727BF387] DEFAULT ((0)),
[IM_CALC_SE05] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__737017C0] DEFAULT ((0)),
[IM_CALC_SE06] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__74643BF9] DEFAULT ((0)),
[IM_CALC_SE07] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__75586032] DEFAULT ((0)),
[IM_CALC_SE08] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__764C846B] DEFAULT ((0)),
[IM_CALC_SE09] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7740A8A4] DEFAULT ((0)),
[IM_CALC_SE10] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7834CCDD] DEFAULT ((0)),
[IM_CALC_SE11] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7928F116] DEFAULT ((0)),
[IM_CALC_SE12] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7A1D154F] DEFAULT ((0)),
[IM_CALC_SE13] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7B113988] DEFAULT ((0)),
[IM_CALC_SE14] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7C055DC1] DEFAULT ((0)),
[IM_CALC_SE15] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7CF981FA] DEFAULT ((0)),
[IM_CALC_SE16] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7DEDA633] DEFAULT ((0)),
[IM_CALC_SE17] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7EE1CA6C] DEFAULT ((0)),
[IM_CALC_SE18] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__7FD5EEA5] DEFAULT ((0)),
[IM_CALC_SE19] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__00CA12DE] DEFAULT ((0)),
[IM_CALC_SE20] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__01BE3717] DEFAULT ((0)),
[IM_CALC_SE21] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__02B25B50] DEFAULT ((0)),
[IM_CALC_SE22] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__03A67F89] DEFAULT ((0)),
[IM_CALC_SE23] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__049AA3C2] DEFAULT ((0)),
[IM_CALC_SE24] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__058EC7FB] DEFAULT ((0)),
[IM_CALC_SE25] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0682EC34] DEFAULT ((0)),
[IM_CALC_SE26] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0777106D] DEFAULT ((0)),
[IM_CALC_SE27] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__086B34A6] DEFAULT ((0)),
[IM_CALC_SE28] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__095F58DF] DEFAULT ((0)),
[IM_CALC_SE29] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0A537D18] DEFAULT ((0)),
[IM_CALC_SE30] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0B47A151] DEFAULT ((0)),
[IM_CALC_SE31] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0C3BC58A] DEFAULT ((0)),
[IM_CALC_SE32] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0D2FE9C3] DEFAULT ((0)),
[IM_CALC_SE33] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0E240DFC] DEFAULT ((0)),
[IM_CALC_SE34] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__0F183235] DEFAULT ((0)),
[IM_CALC_SE35] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__100C566E] DEFAULT ((0)),
[IM_CALC_SE36] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__11007AA7] DEFAULT ((0)),
[IM_CALC_SE37] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__11F49EE0] DEFAULT ((0)),
[IM_CALC_SE38] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__12E8C319] DEFAULT ((0)),
[IM_CALC_SE39] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__13DCE752] DEFAULT ((0)),
[IM_CALC_SE40] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__14D10B8B] DEFAULT ((0)),
[IM_CALC_SE41] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__15C52FC4] DEFAULT ((0)),
[IM_CALC_SE42] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__16B953FD] DEFAULT ((0)),
[IM_CALC_SE43] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__17AD7836] DEFAULT ((0)),
[IM_CALC_SE44] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__18A19C6F] DEFAULT ((0)),
[IM_CALC_SE45] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__1995C0A8] DEFAULT ((0)),
[IM_CALC_SE46] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__1A89E4E1] DEFAULT ((0)),
[IM_CALC_SE47] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__1B7E091A] DEFAULT ((0)),
[IM_CALC_SE48] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__1C722D53] DEFAULT ((0)),
[IM_CALC_SE49] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__1D66518C] DEFAULT ((0)),
[IM_CALC_SE50] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__1E5A75C5] DEFAULT ((0)),
[IM_CALC_SE51] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__1F4E99FE] DEFAULT ((0)),
[IM_CALC_SE52] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__2042BE37] DEFAULT ((0)),
[IM_CALC_SE53] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__2136E270] DEFAULT ((0)),
[IM_CALC_SE54] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__222B06A9] DEFAULT ((0)),
[IM_CALC_SE55] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__231F2AE2] DEFAULT ((0)),
[IM_CALC_SE56] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__24134F1B] DEFAULT ((0)),
[IM_CALC_SE57] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__25077354] DEFAULT ((0)),
[IM_CALC_SE58] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__25FB978D] DEFAULT ((0)),
[IM_CALC_SE59] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__26EFBBC6] DEFAULT ((0)),
[IM_CALC_SE60] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDFLUJ_PR__IM_CA__27E3DFFF] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDFLUJ_PR__CO_US__28D80438] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDFLUJ_PR__FE_US__29CC2871] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TDFLUJ_PR__CO_US__2AC04CAA] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TDFLUJ_PR__FE_US__2BB470E3] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDFLUJ_PROY_SEMA] WITH NOCHECK ADD CONSTRAINT [CK__TDFLUJ_PR__NU_AN__6CC31A31] CHECK NOT FOR REPLICATION (([NU_ANIO]>(1980)))
GO
ALTER TABLE [dbo].[TDFLUJ_PROY_SEMA] ADD CONSTRAINT [PK__TDFLUJ_P__E19F5ABD68B35D82] PRIMARY KEY CLUSTERED  ([CO_EMPR], [NU_ANIO], [NU_SECU]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDFLUJ_PROY_SEMA] ADD CONSTRAINT [FK__TDFLUJ_PR__CO_EM__51BAE991] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
